package dp.mobile.entity.saveable;

import java.util.ArrayList;

public class SaveableGame extends SaveableBase {
	private static final long serialVersionUID = -5000731528293220603L;
	
	public SaveableGame() {
		mLevelSource = "";
		mTowers = new ArrayList<SaveableTower>();
		mEnemies = new ArrayList<SaveableEnemy>();
		mGenerators = new ArrayList<SaveableGenerator>();
	}
	
	public void addTower(SaveableTower t) {
		mTowers.add(t);
	}
	
	public void addGenerator(SaveableGenerator g) {
		mGenerators.add(g);
	}
	
	public void addEnemy(SaveableEnemy e) {
		mEnemies.add(e);
	}
	
	public void setPlayer(SaveablePlayer p) {
		mPlayer = p;
	}
	
	public void setLevelSource(String source) {
		mLevelSource = source;
	}
	
	public String mLevelSource;
	public SaveablePlayer mPlayer;
	public ArrayList<SaveableTower> mTowers;
	public ArrayList<SaveableGenerator> mGenerators;
	public ArrayList<SaveableEnemy> mEnemies;
}
